package org.car.world.service.impl;

import java.util.List;

import org.car.world.core.entily.SigninTable;
import org.car.world.core.mapper.SigninTableMapper;
import org.car.world.service.SigninService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor = {RuntimeException.class, Exception.class})
public class SigninServiceImpl implements SigninService {


    @Autowired
    SigninTableMapper signinTableMapper;

    @Override
    public int deleteByPrimaryKey(Integer signinId) {
        return signinTableMapper.deleteByPrimaryKey(signinId);
    }

    @Override
    public int insert(SigninTable record) {
        return signinTableMapper.insert(record);
    }

    @Override
    public SigninTable selectByPrimaryKey(Integer signinId) {
        return signinTableMapper.selectByPrimaryKey(signinId);
    }

    @Override
    public List<SigninTable> selectAll() {
        return signinTableMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(SigninTable record) {
        return signinTableMapper.updateByPrimaryKey(record);
    }

}
